package com.example.compose_learn.compose

import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp


@Preview
@Composable
fun Padding() {
    Column(
        modifier = Modifier
            .size(100.dp, 100.dp)
            .background(Color.Red)
            .padding(10.dp)
            .clickable { }) { }
}

@Preview
@Composable
fun Padding1() {
    Column(modifier = Modifier
        .size(100.dp, 100.dp)
        .background(Color.Red)
        .clickable { }
        .padding(10.dp)) { }
}